package com.jlz.service.email;

import org.springframework.beans.factory.annotation.Autowired;

import com.julewa.Tester;

public class TestEmailSender {
	
	private @Autowired EmailService emailsrv;
	
	@Tester.test
	public void test(){
		emailsrv.sendRegisterNotice("penghae@163.com", "huangbh", "hi, something send from my program.");
	}
	
	public static final void main(String a[]) throws Exception{
		Tester.execute(TestEmailSender.class);
		/*
		InputStream in = TestEmailSender.class.getClassLoader().getResource("system.conf").openStream();
		String txt = StreamUtils.readText(in);
		txt = new String(txt.getBytes("ISO-8859-1"));
		System.out.println(txt);
		in.close();
		in = new ByteArrayInputStream(txt.getBytes());
		Properties lp = new Properties();
		lp.load(in);
		txt = lp.getProperty("email.sender.from");
		txt = new String(txt.getBytes("ISO-8859-1"), "UTF-8");
		System.out.println(txt);
		*/
	}
}
